package com.zzyl.mapper;

import com.github.pagehelper.Page;
import com.zzyl.entity.NursingLevel;
import com.zzyl.vo.NursingLevelVo;
import com.zzyl.vo.NursingPlanVo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface NursingLevelMapper {
    List<NursingLevelVo> selectAll();

    int insert(NursingLevel nursingLevel);

    Page<NursingLevelVo> selectPageByNameAndStatus(String name, Integer status);

    int countByname(String name);

    NursingLevelVo selectById(Long id);

    int update(NursingLevel nursingLevel);

    int delete(Long id);

    int updateStatus(Long id, Integer status);

    int countByPlanId(Long planId);
}
